package cn.wonderland.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {

   @NotNull(message = "订单id不能为空！")
   private Long id;

   @NotNull(message = "下单不能为空！")
   private Long productId;

   @NotNull(message = "用户id不能为空！")
   private Long userId;

   @NotNull(message = "类型id不能为空！")
   private Long categoryId;

   @NotBlank(message = "下单不能为空！")
   private String orderDate;

}
